package cn.xgj.sfzy.service.impl;

import cn.xgj.sfzy.entity.Company;
import cn.xgj.sfzy.mapper.CompanyMapper;
import cn.xgj.sfzy.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CompanyServiceImpl
 * @Description TODO
 * @Author gcc
 * @Date 2024年10月23日 20:23
 * @Version 1.0
 */
@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;
//    查
    @Override
    public Company select() {
        return companyMapper.select();
    }
//修改
    @Override
    public int edit(Company company) {
        return companyMapper.update(company);
    }
}
